# 安装kk依赖项
sudo apt update && sudo apt install -y socat conntrack ebtables ipset

# 设置中国区
export KKZONE=cn

# 获取kk(方式一)
# curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.7 bash -

# 获取kk(方式二)
wget https://kubernetes.pek3b.qingstor.com/kubekey/releases/download/v3.0.7/kubekey-v3.0.7-linux-amd64.tar.gz
tar xzvf kubekey-v3.0.7-linux-amd64.tar.gz

# 设置执行权限
chmod +x kk

# All-in-One 模式安装ks
./kk create cluster --with-kubernetes v1.23.17 --with-kubesphere v3.3.2